directory: /net/shared/Music/camilo
library: /net/shared/Music/camilo/library.db
plugins: fromfilename scrub zero convert edit inline convert lastgenre fetchart mbsync
# disable: copyartifacts discogs
import:
  copy: no
  move: yes
  write: yes
  autotag: yes
  from_scratch: no
  quiet_fallback: 'asis'
  default_action: 'skip'
art_filename: cover
ui:
  color: yes
paths:
  default: '$albumartist/$album%aunique{}/$track_or_empty$title'
  singleton: 'Non-Album/$albumartist/$artist - $title'
  comp: 'Compilations/$album%aunique{}/$track_or_empty$artist - $title'
  ext:jpg: $albumpath/folder
  ext:png: $albumpath/folder
  
# Plugins
lastgenre:
  auto: yes
  force: yes
  count: 3
fetchart:  # send upstream PR for support singles
  auto: yes
  cautious: yes
  cover_names: cover front art album folder
  sources:
    - coverart: release
    - coverart: releasegroup
    - filesystem
    - albumart
    - wikipedia
    - itunes
    - amazon
copyartifacts:
  extensions: .cue .log .jpg .png .pdf
  print_ignored: yes
scrub:
  auto: yes
zero:
  auto: yes
  fields: title artist albumartist comments genre
  title: ['\bningún artista\b', '\bningun artista\b', '\bunknown artist\b']
  artist: ['\bningún título\b', '\bningun titulo\b', '\bunknown title\b']
  albumartist: ['\bningún título\b', '\bningun titulo\b', '\bunknown title\b']
  comments: [EAC, LAME, from.+collection, 'ripped by', 'encoded by']
  genre: ['\bnone\n', '\bunknown\b', '\nninguno\n', '\bdesconocido\b']
  update_database: true
item_fields:
  track_or_empty: |
    return u'%02i.%02i - ' % (disc, track) if disctotal > 1 else u'%02i - ' % (track) if track != 00 else ''
convert:
  auto: yes
  format: ogg
  formats:
    ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 4 $dest
  dest: /net/shared/Music/backup
  copy_album_art: yes
  no_convert: path::\.(ogg|oga)$
